﻿function cutCharString(value, numberOfChar) {
    var count = parseInt(numberOfChar);
    if (value.length < count) {
        return value;
    }
    return value.substring(0, count - 1) + "...";
}